/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Persistencia;

/**
 *
 * @author marco
 */
public class Singleton_Conexion {
        private String protocolo;
        private String driver;
        private static Singleton_Conexion Instancia = null;
        private synchronized static void crearInstancia() {
         if (Instancia == null) {
            Instancia = new Singleton_Conexion();
         }
         }
    public static Singleton_Conexion getInstancia() {
        if (Instancia == null) crearInstancia();
        return Instancia;
    }

    public Singleton_Conexion(){
        
        protocolo="jdbc:sqlite:"+System.getProperty("user.dir").replace("/dist", "")+"/Acciones.sqlite";//si la bd no existe la crea (carpetas extras no);
        driver="org.sqlite.JDBC";
        
    }
    public String getProtocolo(){
        return protocolo;
    }

    
    public String getDriver(){
        return driver;
    }
}
